<%@ page import="java.util.List" %>
<%@ page import="top.yujinghe.study.webdemo.entity.TbClass" %>
<%@ page import="top.yujinghe.study.webdemo.dao.TbClassdao" %><%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2024/5/16
  Time: 15:30
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>班级列表</title>
</head>
<body>





<%
    List<TbClass> list = TbClassdao.query();
%>

  <h1>
      <a href="insert.jsp">班级添加</a>
  </h1>



  <thead border="1" style="width: 100%;">
     <tr>
         <th>编号</th>
         <th>名称</th>
         <th>简介</th>
         <th>创建时间</th>
     </tr>
  </thead>


  <tbody>
     <%
        for (TbClass tbClass : list){

     %>
     <tr>
         <td><%=tbClass.getId()%></td>
         <td><%=tbClass.getClassname()%></td>
         <td><%=tbClass.getClassinfo()%></td>
         <td><%=tbClass.getCreated()%></td>
     </tr>

     <%}%>
  </tbody>



</body>
</html>
